angular.module('app.services')
    .factory('Component', ['$log', '$uibModal',function( $log, $uibModal ){
        return{
            dealConfirm:function(callback,params){
                var modalInstance = $uibModal.open({
                    backdrop: true,
                    size: 'sm',
                    templateUrl: 'component/dealConfirm/dealConfirm.html',
                    controller: 'DealConfirmController',
                    resolve: {
                        callback: function () {
                            return callback;
                        },
                        params: function () {
                            return params;
                        }
                    }
                })
            }
        }
    }]);
